package com.edu.admin.entity;


import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

import com.edu.admin.common.BaseEntity;

/**
 * 学校角色表实体
 * 
 * @author Wangjiong
 * 
 */
@Table(name = "sys_school_role")
public class SysSchoolRole extends BaseEntity{ 

	/**
	 * 
	 */
	private static final long serialVersionUID = -8086850024724990452L;
	/**
	 * 校级角色id
	 * 
	 */
	@Id
	@GeneratedValue(generator = "JDBC")
	private Long schoolRoleId;
	/**
	 * 校级角色名称
	 * 
	 */
	@NotBlank(message = "角色名称不能为空")
	private String schoolRoleName;
	/**
	 * 学校id
	 * 
	 */
	@Min(value = 1,message = "学校不能为空")
	private Long schoolId;
	/**
	 * 是否使用
	 * 
	 */
	private Integer useType;
		
	/** 
	 * 菜单id数组
	 * 
	 */
	@Transient
    private Long[] menuIds;

	public Long getSchoolRoleId() {
		return schoolRoleId;
	}

	public void setSchoolRoleId(Long schoolRoleId) {
		this.schoolRoleId = schoolRoleId;
	}

	public String getSchoolRoleName() {
		return schoolRoleName;
	}

	public void setSchoolRoleName(String schoolRoleName) {
		this.schoolRoleName = schoolRoleName;
	}

	public Long getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(Long schoolId) {
		this.schoolId = schoolId;
	}

	public Integer getUseType() {
		return useType;
	}

	public void setUseType(Integer useType) {
		this.useType = useType;
	}

	public Long[] getMenuIds() {
		return menuIds;
	}

	public void setMenuIds(Long[] menuIds) {
		this.menuIds = menuIds;
	}
	
	

}
